$(document).ready(function() {
	$("#pageSelection").bind("change",function(){
		$("#pageIndex").val($("#pageSelection").val());
		$("#detailsSearchResult").load(getRootPath()+ "/MainMenu/profit/profitDetailsSearch.htm", $("#detailsSearchForm").serializeArray());
	});
	
	$("#previousButton").bind("click",function(){
		$("#pageIndex").val($("#previousPageIndex").val());
		$("#detailsSearchResult").load(getRootPath()+ "/MainMenu/profit/profitDetailsSearch.htm", $("#detailsSearchForm").serializeArray());
	});
	
	$("#nextButton").bind("click",function(){
		$("#pageIndex").val($("#nextPageIndex").val());
		$("#detailsSearchResult").load(getRootPath()+ "/MainMenu/profit/profitDetailsSearch.htm", $("#detailsSearchForm").serializeArray());
	});
});